/*********
** Intro
*********/
#content {
    max-width: calc(100% - 2em); /* allow for wider table if room available */
}

#intro {
    max-width: 60em;
}

#options {
    margin-bottom: 1em;
}

#options #filter-area {
    opacity: 0.7;
}

#options #filters {
    margin-left: 2em;
    padding-left: 0.5em;
    border-left: 2px solid gray;
}

#options #filters span {
    padding: 2px;
    margin: 2px;
    display: inline-block;
    border-radius: 3px;
    color: #000;
    border-color: #880000;
    background-color: #fcc;
    font-size: 0.9em;
}

#options #filters span.active {
    background: #cfc;
}

#mod-count {
    font-size: 0.8em;
    opacity: 0.5;
}

div.error {
    padding: 2em 0;
    color: red;
    font-weight: bold;
}

/*********
** Mod list
*********/
table.wikitable {
    background-color:#f8f9fa;
    color:#222;
    border:1px solid #a2a9b1;
    border-collapse:collapse
}

table.wikitable > tr > th,
table.wikitable > tr > td,
table.wikitable > * > tr > th,
table.wikitable > * > tr > td {
    border:1px solid #a2a9b1;
    padding:0.2em 0.4em
}

table.wikitable > tr > th,
table.wikitable > * > tr > th {
    background-color:#eaecf0;
}

table.wikitable > caption {
    font-weight:bold
}

#mod-list {
    font-size: 0.9em;
}

#mod-list thead tr {
    position: sticky;
    top: 0;
}

#mod-list th.header {
    background-repeat: no-repeat;
    background-position: center right;
    cursor: pointer;
    background-image: url();
    padding-right: 1.5em;
}

#mod-list th.headerSortUp {
    background-image: url();
}

#mod-list th.headerSortDown {
    background-image: url();
}

#mod-list .mod-page-links,
#mod-list .mod-broke-in {
    font-size: 0.9em;
}

#mod-list .mod-alt-authors,
#mod-list .mod-alt-names {
    font-size: 0.8em;
}

#mod-list .mod-alt-authors,
#mod-list .mod-alt-names {
    display: block;
}

#mod-list tr[data-status="ok"],
#mod-list tr[data-status="optional"] {
    background: #BFB;
}

#mod-list tr[data-status="workaround"],
#mod-list tr[data-status="unofficial"] {
    background: #FFFEC6;
}

#mod-list tr[data-status="broken"] {
    background: #FBB;
}

#mod-list tr[data-status="obsolete"],
#mod-list tr[data-status="abandoned"] {
    background: #BBB;
    opacity: 0.7;
}

#mod-list tr[data-status="abandoned"] .mod-page-links,
#mod-list tr[data-status="broken"] .mod-page-links,
#mod-list tr[data-status="obsolete"] .mod-page-links,
#mod-list tr[data-status="unofficial"] .mod-page-links,
#mod-list tr[data-status="workaround"] .mod-page-links {
    text-decoration: line-through;
}

#mod-list td.smapi-3-col span {
    border-bottom: 1px dashed gray;
}

#mod-list .license-badge {
    vertical-align: middle;
}
